<script type="text/javascript">
/**function checkHasNewLogin(){ 

  while(true){
  alert("hhaha");
	var d=new Date();
    $.get("http://localhost:8080/playViews/login/checkNewLogin?date="+ d.getTime(),function(result){
	var msg=result.msg;
	if(msg==1){
	document.getElementById('hasNewLoginMsg').innerHTML="您的账户被其他人登陆,您被踢下线";
	 break;
		} 
  });
  			};
  };
  checkHasNewLogin();*/
</script>

<script type="text/javascript">
$(document).ready(function(){
  $(".btn1").click(function(){
  while(true){
 var d=new Date();
     $.get("http://localhost:8080/playViews/login/checkNewLogin?date="+ d.getTime(),function(result){
   $("p").html(result.msg+"loginID:${login.encryptionId}");
  break;
  });
  };
  });
});
</script>
	<p></p>

<button class="btn1">btn1</button>

supervm vm!!<div id="hasNewLoginMsg">
</div>